package com.shsh.safemanage.model;

public class User {
	private Long id;
	private String name;
	private String password;
	private String personNum;
	private String jobNum;
	private int departmentType;
	private Long department1ID;
	private String department1Name;
	private Long department2ID;
	private String department2Name;
	private Long department3ID;
	private String department3Name;
	private Long jobTitleID;
	private Long jobPost1ID;
	private String jobPost1Name;
	private Long jobPost2ID;
	private String jobPost2Name;
	private Long jobPost3ID;
	private String jobPost3Name;
	private Long manageGroupID;
	private String manageGroupName;
	private boolean isRegistered;
	private int roleType;
	
	private boolean isModified;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getJobNum() {
		return jobNum;
	}

	public void setJobNum(String jobNum) {
		this.jobNum = jobNum;
	}

	public Long getDepartment1ID() {
		return department1ID;
	}

	public void setDepartment1ID(Long department1id) {
		department1ID = department1id;
	}

	public String getDepartment1Name() {
		return department1Name;
	}

	public void setDepartment1Name(String department1Name) {
		this.department1Name = department1Name;
	}

	public Long getDepartment2ID() {
		return department2ID;
	}

	public void setDepartment2ID(Long department2id) {
		department2ID = department2id;
	}

	public int getDepartmentType() {
		return departmentType;
	}

	public void setDepartmentType(int departmentType) {
		this.departmentType = departmentType;
	}

	public String getPersonNum() {
		return personNum;
	}

	public void setPersonNum(String personNum) {
		this.personNum = personNum;
	}

	public String getDepartment2Name() {
		return department2Name;
	}

	public void setDepartment2Name(String department2Name) {
		this.department2Name = department2Name;
	}

	public Long getDepartment3ID() {
		return department3ID;
	}

	public void setDepartment3ID(Long department3id) {
		department3ID = department3id;
	}

	public String getDepartment3Name() {
		return department3Name;
	}

	public void setDepartment3Name(String department3Name) {
		this.department3Name = department3Name;
	}

	public Long getJobPost1ID() {
		return jobPost1ID;
	}

	public void setJobPost1ID(Long jobPost1ID) {
		this.jobPost1ID = jobPost1ID;
	}

	public String getJobPost1Name() {
		return jobPost1Name;
	}

	public void setJobPost1Name(String jobPost1Name) {
		this.jobPost1Name = jobPost1Name;
	}

	public int getRoleType() {
		return roleType;
	}

	public void setRoleType(int roleType) {
		this.roleType = roleType;
	}

	public boolean isRegistered() {
		return isRegistered;
	}

	public void setRegistered(boolean isRegistered) {
		this.isRegistered = isRegistered;
	}

	public Long getJobPost2ID() {
		return jobPost2ID;
	}

	public void setJobPost2ID(Long jobPost2ID) {
		this.jobPost2ID = jobPost2ID;
	}

	public boolean isModified() {
		return isModified;
	}

	public void setModified(boolean isModified) {
		this.isModified = isModified;
	}

	public String getJobPost2Name() {
		return jobPost2Name;
	}

	public void setJobPost2Name(String jobPost2Name) {
		this.jobPost2Name = jobPost2Name;
	}

	public Long getJobPost3ID() {
		return jobPost3ID;
	}

	public void setJobPost3ID(Long jobPost3ID) {
		this.jobPost3ID = jobPost3ID;
	}

	public String getJobPost3Name() {
		return jobPost3Name;
	}

	public void setJobPost3Name(String jobPost3Name) {
		this.jobPost3Name = jobPost3Name;
	}

	public Long getManageGroupID() {
		return manageGroupID;
	}

	public void setManageGroupID(Long manageGroupID) {
		this.manageGroupID = manageGroupID;
	}

	public String getManageGroupName() {
		return manageGroupName;
	}

	public void setManageGroupName(String manageGroupName) {
		this.manageGroupName = manageGroupName;
	}

	public Long getJobTitleID() {
		return jobTitleID;
	}

	public void setJobTitleID(Long jobTitleID) {
		this.jobTitleID = jobTitleID;
	}
	
	public boolean equals(Object o) {
		if (o == null) {
			return false;
		}
		
		if (!(o instanceof User)) {
			return false;
		}
		
		User theUser = (User) o;
		return theUser.getId().equals(this.id);
	}
	
	public int hashCode() {
		return this.id.intValue();
	}

}
